package cn.matezk.lianlian.dao;

import cn.matezk.lianlian.model.UserDevice;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDeviceDao {
    int bind(UserDevice userDevice);
    int batchBind(List<UserDevice> list);
    UserDevice match(String userId, String deviceId);
    int unbind(@Param("userId") String userId, @Param("deviceId") String deviceId);
    int unbindByDeviceId(String deviceId);
    int unbindByUserId(String userId);
    int changeFamilyDeviceOwner(@Param("familyId") String familyId, @Param("fromUserId") String fromUserId, @Param("toUserId") String toUserId);
}
